<div class='grid_6'>
    <div class='block-border'>
        <div class='block-header'>
            <h1>User Form</h1>
            <span></span>
        </div>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'user-form',
            'enableAjaxValidation' => false,
            'htmlOptions' => array('class' => 'block-content form'),
                ));
        ?>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'username'); ?>
                <?php echo $form->textField($model, 'username', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'username'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'password'); ?>
                <?php echo $form->passwordField($model, 'password', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'password'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'email'); ?>
                <?php echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'email'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'sex'); ?>
                <?php echo $form->textField($model, 'sex'); ?>
                <?php echo $form->error($model, 'sex'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'dateOfBirth'); ?>
                <?php echo $form->textField($model, 'dateOfBirth', array('class' => 'required hasDatepicker text', 'name' => 'datepicker')); ?>
                <?php echo $form->error($model, 'dateOfBirth'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'address'); ?>
                <?php echo $form->textField($model, 'address', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'address'); ?>
            </p>
        </div>
        <div class='_100'>
            <p>
                <?php echo $form->labelEx($model, 'imageUrl'); ?>
                <?php echo $form->textField($model, 'imageUrl', array('size' => 60, 'maxlength' => 255)); ?>
                <?php echo $form->error($model, 'imageUrl'); ?>
            </p>
        </div>
        <div class='clear'></div>
        <div class='block-actions'>
            <ul class='actions-right'>
                <li><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'button')); ?></li>
            </ul>
        </div>
        <?php $this->endWidget(); ?>
    </div>
    <div class="clear height-fix"> </div>
</div>
<div class='clear'></div>